echo off

REM setup classpath

echo set _CP=%%_CP%%;%%1> cp.bat

set _CP=.;.\bin

for %%i in (lib\*.jar) do call cp.bat %%i

set CLASSPATH=%_CP%;

del cp.bat

echo %CLASSPATH%



set JAVA_RUN="%JAVA_HOME%\bin\java" -Dfile.encoding=GBK -Xmx1024M -Xms256M

set RUN_CLASS=com.amarsoft.als.AmarALS

set ARE=etc\are.xml

set TASK=%1%

set GUI_MODE=%2%

@echo on

%JAVA_RUN% -classpath %CLASSPATH% %RUN_CLASS% are=%ARE% gui=%GUI_MODE% task=%TASK%

pause

